package org.android.contacts;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ExpandableListView;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.RatingBar;
import android.widget.TextView;
import ContactInfoSystem.*;

public class ContactDetailActivity extends Activity {

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		Bundle extras = getIntent().getExtras();
		// String data="";
		int groupID = 0;
		int childID = 0;
		if (extras != null) {
			groupID = Integer.parseInt(extras.getString("groupID"));
			childID = Integer.parseInt(extras.getString("childID"));
		}
		// setTitle("Info:"+data);

		GroupedContacts gc = ContactShowStorage.getList().get(groupID);
		setContentView(R.layout.contact_detail);
		ListView listView = (ListView) findViewById(R.id.contact_detail_listview);
		listView.setAdapter(new ContactDetailListAdapter(this, gc.getContact()
				.get(childID)));
	}
}
